Mesh

Undocumented in source.

Constructors

this
this(HipVertexArrayObject vao, Shader shader)
Undocumented in source.

Members

Functions

bind
void bind()
Undocumented in source. Be warned that the author may not have intended to support it.
createIndexBuffer
void createIndexBuffer(index_t count, HipBufferUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.
createVertexBuffer
void createVertexBuffer(index_t count, HipBufferUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(T count, HipRendererMode mode, uint offset)

How many indices should it draw

sendAttributes
void sendAttributes()
Undocumented in source. Be warned that the author may not have intended to support it.
setIndices
void setIndices(index_t[] indices)

Will choose between resizing buffer as needed or only updating it.

setShader
void setShader(Shader s)
Undocumented in source. Be warned that the author may not have intended to support it.
setVertices
void setVertices(void[] vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
unbind
void unbind()
Undocumented in source. Be warned that the author may not have intended to support it.
updateIndices
void updateIndices(index_t[] indices, int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
updateVertices
void updateVertices(void[] vertices, int offset)

Updates the GPU internal buffer by using the buffer sent. The offset is always multiplied by the target vertex buffer stride.

Variables

indices
index_t[] indices;
Undocumented in source.
isInstanced
bool isInstanced;

Not yet supported

shader
Shader shader;
Undocumented in source.
vao
HipVertexArrayObject vao;
Undocumented in source.
vertices
void[] vertices;
Undocumented in source.

Meta